<?php $this->headScript()->appendFile($this->JS_PATH . 'customer.js'); ?>

<div id="customer-listing"></div>
<div class="container-fluid">
    <div id="pad-wrapper" class="form-page">

        <div class="row-fluid form-wrapper">
            <!-- left column -->
            <div class="span column">

                <?php if ($this->successmessage != ''): ?>
                    <div class="alert alert-success">
                        <i class="icon-ok-sign"></i> <?php echo $this->successmessage; ?>
                    </div>
                <?php endif; ?>



                <?php if (count($this->errorMessageArray) > 0): ?>
                    <div class="alert alert-error">
                        <?php foreach ($this->errorMessageArray as $erroValue): ?>

                            <div class="text-left">
                                <i class="icon-remove-sign"></i>
                                <?php echo $erroValue; ?>
                            </div>

                        <?php endforeach; ?>
                    </div>
                <?php endif; ?>
                <h3><?php echo $this->translate("edit_profile"); ?></h3>
                 <br/>
                 <div class="customer">
                <form role="form" id="customer-form" name="customer-form"  enctype="multipart/form-data"  action="" method="post">
                    
                    <div class="field-box">
                            <label><?php echo $this->translate("customer_frm_title"); ?>:</label>
                             <div class="ui-select">
                                 <?php echo $this->form->cust_title; ?>
                             </div>
                     </div>
                    
                    <div class="field-box">
                        <label><?php echo $this->translate("customer_frm_firstname"); ?><span class="error-star">*</span>:</label>

                        <?php echo $this->form->cust_firstname; ?>
                    </div>
                    <div class="field-box">
                        <label><?php echo $this->translate("customer_frm_lastname"); ?><span class="error-star">*</span>:</label>

                        <?php echo $this->form->cust_lastname; ?>
                    </div>

                    <div class="field-box">
                        <label><?php echo $this->translate("customer_frm_image"); ?>:</label>
                        <?php if ($this->imageName != ""): ?>
                            <?php if (file_exists($this->UPLOAD_PATH . "customer/" . $this->imageName)): ?>
                                <?php
                                $src_path = $this->PUBLIC_PATH . "upload/customer/" . $this->imageName;
                                ?>
                                <img src="<?php echo $src_path; ?>" height="200" width="200"/>&nbsp;<br>
                            <?php endif; ?><?php endif; ?>
                        <input type="file" name="cust_image" id="cust_image">  

                    </div>
                    <div style="clear: both"></div>
                    <div class="field-box">
                        <label><?php echo $this->translate("customer_frm_phone"); ?><span class="error-star">*</span></label>
                        <?php echo $this->form->cust_phone; ?>
                    </div>
                    
                     <div class="field-box">
                        <label><?php echo $this->translate("customer_frm_mobile"); ?>:</label>
                        <?php echo $this->form->cust_mobile_no; ?>
                    </div>
                    
                    
                    <div class="field-box">
                        <label><?php echo $this->translate("customer_frm_fax"); ?></label>
                        <?php echo $this->form->cust_fax; ?>
                    </div>

                    <div class="field-box">
                        <label><?php echo $this->translate("customer_frm_email"); ?><span class="error-star">*</span></label>

                        <?php
                        echo $this->form->lgn_email;
                        ?>
                    </div>

                    <div class="field-box">
                        <label><?php echo $this->translate("customer_frm_password"); ?><span class="error-star">*</span></label>
                        <?php echo $this->form->lgn_password; ?>
                    </div>


                    <div class="field-box">
                        <label><?php echo $this->translate("customer_frm_conf_password"); ?><span class="error-star">*</span></label>
                        <?php echo $this->form->lgn_confirmpassword; ?>
                    </div>
                    <div class="field-box">
                        <label><?php echo $this->translate("customer_frm_company"); ?><span class="error-star">*</span>:</label>
                        <?php echo $this->form->com_id; ?>
                    </div>
                    
                     <div class="field-box">
                        <label><?php echo $this->translate("customer_frm_department"); ?><span class="error-star">*</span>:</label>
                             <?php echo $this->form->dep_id; ?>
                    </div>

                    <div class="field-box">
                        <label><?php echo $this->translate("customer_frm_address"); ?><span class="error-star">*</span></label>
                        <?php echo $this->form->cust_address; ?>
                    </div>
                    <div class="field-box">
                        <label><?php echo $this->translate("customer_frm_city"); ?><span class="error-star">*</span></label>
                        <?php echo $this->form->cust_city; ?>
                    </div>
                    <div class="field-box">
                        <label><?php echo $this->translate("customer_frm_state"); ?><span class="error-star">*</span></label>
                        <?php echo $this->form->cust_state; ?>
                    </div>


                    <div class="field-box">
                        <label><?php echo $this->translate("customer_frm_country"); ?><span class="error-star">*</span></label>

                        <?php echo $this->form->cust_country; ?>

                    </div>

                    <div class="field-box">
                        <label><?php echo $this->translate("customer_frm_zipcode"); ?></label>
                        <?php echo $this->form->cust_zipcode; ?>
                    </div>

                    <div class="field-box">
                        <label><?php echo $this->translate("customer_frm_quality"); ?><span class="error-star">*</span></label>
                        <div class="ui-select">
                            <?php echo $this->form->cust_quality; ?>
                        </div>
                    </div>


                    <div class="field-box">
                        <label><?php echo $this->translate("customer_frm_security_ques"); ?><span class="error-star">*</span></label>
                        <?php echo $this->form->cust_securityquestion; ?>
                    </div>

                    <div class="field-box">
                        <label><?php echo $this->translate("customer_frm_security_ans"); ?><span class="error-star">*</span></label>
                        <?php echo $this->form->cust_securityanswer; ?>
                    </div>

                    <div class="field-box">
                        <label><?php echo $this->translate("customer_frm_availability"); ?><span class="error-star">*</span></label>
                        <div class="ui-select">
                            <?php echo $this->form->cust_availability; ?>
                        </div>
                    </div>
                    <div class="field-box">
                        <label><?php echo $this->translate("frm_language"); ?><span class="error-star">*</span>:</label>

                        <?php echo $this->form->lang_id; ?>

                    </div>

                    <?php if ($this->customerid != ''): ?>
                        <input type="hidden" name="cust_status" id="cust_status" value="1">
                    <?php endif; ?>
                    <br>

                    <div class="field-box">
                        <?php echo $this->form->Save; ?>
                        <?php echo $this->form->Reset; ?> 
                    </div>



                </form>
                 </div>
            </div>
        </div>
    </div>
</div>



